﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace GuessTicketClass.Entity
{
    /// <summary>
    /// 配置文件
    /// </summary>
    [Serializable]
    [XmlRoot("AppConfig")]
    public class AppConfig : IConfigInfo
    {
        private string _mssqlconnection;
        private string _tablename;
        private string _encodingcode;
        private string _downloadpath;

        public AppConfig()
        {

        }

        /// <summary>
        /// MSSQL 数据库链接
        /// </summary>
        public string MssqlConnection
        {
            get
            {
                return _mssqlconnection;
            }
            set
            {
                this._mssqlconnection = value;
            }
        }

        /// <summary>
        /// 采集后要插入的表名
        /// </summary>
        public string TableName
        {
            get
            {
                return _tablename;
            }
            set
            {
                this._tablename = value;
            }
        }

        /// <summary>
        /// 下载编码 utf-8 ，gb2312
        /// </summary>
        public string EncodingCode
        {
            get
            {
                return _encodingcode;
            }
            set
            {
                this._encodingcode = value;
            }
        }

        /// <summary>
        /// 下载目录，当前程序运行目录创建的目录
        /// </summary>
        public string DownloadPath
        {
            get
            {
                return _downloadpath;
            }
            set
            {
                this._downloadpath = value;
            }
        }
     
    }
}
